﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html lang="en">
<head>
    <title>Top</title>
    <meta name="viewport" content="width=device-width" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link href="~/Content/sharestyle.css" rel="stylesheet" />
    <script src="~/scripts/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        //Left视图中菜单模块的显示
        function showLeftList(divId) {
            self.parent.frames["leftFrame"].showDivMenu(divId);
        }

        //菜单点击高亮显示
        $(function () {
            $(".nav_list ul li a").click(function () {
                $(".nav_list ul li a").css("background-color", "");
                $(".nav_list ul li a").css("color", "#ceebff");
                $(this).css("background-color", "#66d354");
                $(this).css("color", "white");
            });
        });

        function Logout() {
            $("#LogoutForm").submit();
            Logout();
        }
        //$(function () {
        //    $(".btsty2").click(function () {
        //        $("#LogoutForm").submit();
        //    });
        //});
        function goNewPage(url, name) {
            self.parent.frames["mainFrame"].addTab(url, name);
        }
    </script>
    <style type="text/css">
        .lgstatus span {
            color: white;
            font-size: 16px;
        }
        .lgstatus span:hover {
            cursor: pointer;
            color: #2F4056;
            font-size: 17px;
        }
        .hightCss{
            color:yellow;
        }
        .index_logo {
            float: left;
            margin: 17px 0 0 25px;
            color: white;
            font-size: 20px;
        }
        .index_logo:hover{
            cursor:pointer;
            color:#2F4056;
            font-size:20.5px;
        }
    </style>
</head>
<body>
    <div class="index_header" > 
        <div class="index_headertop">
            <div class="index_logo" onclick="goNewPage('/Home/homePage', '员工档案')">
                <span>MSD.EMS.Site</span>
            </div>
            <div class="lgstatus" style="overflow:hidden">
                <label>欢迎你！@User.Identity.Name</label>
            </div>
        </div>
        <div class="clear"></div>
        <div class="index_headerbot">
            <div class="nav_list">
                <ul>
                    <li><a href="#" onclick="showLeftList('divOrder')">基础管理</a>
                        <div class="nav_out" style="display:none;">
                            <i></i>
                            <p><a href="#">类别管理</a></p>
                            <p><a href="#">信息管理</a></p>
                        </div>
                    </li>
                    <li class="slctd" onclick="showLeftList('divFinancial')"><a href="#">生产管理</a>
                        <div class="nav_out" style="display:none;">
                            <i></i>
                            <p><a href="#">生产</a></p>
                            <p><a href="#">销售</a></p>
                        </div>
                    </li>
                    <li><a href="#" onclick="showLeftList('divCustomer')">客户管理</a>
                        <div class="nav_out" style="display:none">
                            <i></i>
                            <p><a href="#">客户信息</a></p>
                        </div>
                    </li>
                    <li>
                        <a href="#" onclick="showLeftList('divAdmin')">系统管理</a>
                        <div class="nav_out" style="display:none">
                            <i></i>
                            <p><a href="#">管理员</a></p>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="fucnbx">
                @if (User.Identity.IsAuthenticated)
                {
                    using (Html.BeginForm("Logout", "Home", FormMethod.Post, new { id = "LogoutForm" }))
                    {
                        @Html.AntiForgeryToken()
                        <span><a href="#" onclick="Logout();" target="_top" id="a_Logout"><i class="i3"></i>退出系统</a></span>
                    }
                }
            </div>
        </div>
    </div>
</body>
</html>
